package com.lsh.oms.core.records.core;

import com.lsh.oms.core.service.tool.Criteria;
import com.lsh.oms.core.service.tool.Pageable;

import java.util.Map;
import java.util.Optional;

public interface ReturnRequestRepository {

    ReturnRequest create(Map<String, Object> request);

    void createBatch(Map<String, Object> request);

    Pageable query(Criteria criteria, long page, long pageLimit);

    Optional<ReturnRequest> find(Long id, boolean detailsRequired);

    Optional<ReturnRequest> find(Long id);

    Map<String, Long> summary(Criteria criteria);
}
